package com.IoLiu;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class IntFile {
    public static void main(String[] args) throws IOException {
        FileInputStream file=new FileInputStream("D:\\下载\\file\\file1\\java.txt");
        int index;
        byte[] bys = new byte[1024];
        while((index=file.read())!=-1){
            System.out.println(new String(bys,0,index));
        }
    }
}
